import { Controller } from 'egg';

export default class FileController extends Controller {
  public async fileUpload() {
    const { ctx } = this;
    ctx.body = await ctx.service.file.fileUpload();
  }

  public async fileAlossUpload(){
    const { ctx } = this;
    ctx.body = await ctx.service.file.fileAlossUpload();
  }

  public async getFile(){
    const { ctx } = this;
    ctx.body = await ctx.service.file.getFile();
  }
}
